package com.ruoyi.develop.produceRecord.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.develop.produceRecordDetail.domain.ProduceRecordDetail;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产记录对象 produce_record
 *
 * @author lmm
 * @date 2025-05-16
 */
public class ProduceRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;


    /**
     * 入库id
     */
    private String rukuId;

    /**
     * 序列号
     */
    @Excel(name = "序列号")
    private String nos;

    /**
     * 生产日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date produceDate;

    /**
     * 提交日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitDate;

    /** * 状态   */
    @Excel(name = "状态")
    private String status;

    /** * 退回原因   */
    private String refuseReason;

    /** * 生产单明细   */
    private List<ProduceRecordDetail> detailList;

    /**
     * 删除标志
     */
    private String delFlag;

    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }

    public List<ProduceRecordDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<ProduceRecordDetail> detailList) {
        this.detailList = detailList;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getRukuId() {
        return rukuId;
    }

    public void setRukuId(String rukuId) {
        this.rukuId = rukuId;
    }

    public void setNos(String nos) {
        this.nos = nos;
    }

    public String getNos() {
        return nos;
    }

    public void setProduceDate(Date produceDate) {
        this.produceDate = produceDate;
    }

    public Date getProduceDate() {
        return produceDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nos", getNos())
                .append("produceDate", getProduceDate())
                .append("submitDate", getSubmitDate())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
